//首页的所有后台请求接口
import {
	request
} from '@/utils/request.js';

const API_PREFIX = "/comment";

//获取商品详情数据
export function findGoodsComment(id) {
	return request({
		url: `${API_PREFIX}/goods/${id}`,
		method: 'GET'
	})
}

//保存商品评价
export function saveGoodsComment(data) {
	return request({
		url: `${API_PREFIX}/save`,
		method: 'POST',
		data: data
	})
}